//
//  ProRecord_Play_Info.m
//  __PRODUCTNAME__
//
//  Created by dllo on 16/09/19
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "ProRecord_Play_Info.h"
#import "ProRecord_Dj_Info.h"

@implementation ProRecord_Play_Info

+ (NSDictionary *)objectClassInArray{
    return @{@"record_dj_info" : [ProRecord_Dj_Info class]};
}
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"record_dj_info"]) {
        _record_dj_info = [self arrayWithClass:[ProRecord_Dj_Info class] value:value];
    }
    if ([key isEqualToString:@"play_time_week"]) {
        NSMutableArray *array = [NSMutableArray array];
        for (NSNumber *number in value) {
            [array addObject:number];
        }
        _play_time_week = array;
    }
}

@end
